//
//  HEPointDetailModel.m
//  HealthFamily
//
//  Created by 吴欧 on 2020/12/11.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import "HEPointDetailModel.h"

@implementation HEPointDetailModel

- (NSString *)KpointDesc {
    if (!_KpointDesc) {
        if ([@"0" isEqualToString:_point_oper]) {
            _KpointDesc = [NSString stringWithFormat:@"+%@", _consumer_point];
            _KpointDescColor = CNavBgColor;
        }else if ([@"1" isEqualToString:_point_oper]) {
            _KpointDesc = [NSString stringWithFormat:@"-%@", _consumer_point];
            _KpointDescColor = CPriceColor;
        }
    }
    return _KpointDesc;
}

- (NSString *)Ktime {
    if (!_Ktime) {
        _Ktime = [NSDate timestampToDate:_consumer_date formaterMode: NSDateFormaterModeDefault];
    }
    return _Ktime;
}

@end
